package com.groupscore.score.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.sql.DataSourceDefinition;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Entity
@Table(name = "user_exception")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserException implements Serializable {

    @Id
    private String id;
    private String userId;
    private String userName;
    private String title;

    private String descrition;
    private String analysis;
    private String solve;
    private Integer score;
    private String pic  ;
    private String status;

    private Integer catId;
    private String catName;

    private String url;

    private String urls;

    private Integer chapterId;
    private String chapterName;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    private String token;


}
